//
//  SPPayService.h
//  BaseProject
//
//  Created by Sailer Guo on 2019/12/25.
//  Copyright © 2019 Beijing Shopin Retail Development Co., Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ReactiveObjC.h>
#import "EnvironmentConstants.h"

NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    SPPayTypeAliPay = 1,
    SPPayTypeWechat
} SPPayType;

FOUNDATION_EXTERN NSString *const kAlipayResultNotification;
FOUNDATION_EXTERN NSString *const kWechatPaySuccessNotification;
FOUNDATION_EXTERN NSString *const kWechatPayFailureNotification;


@interface SPPayService : NSObject <SPService>

/*
 订单支付
 */
- (RACSignal *)payServiceForOrderNo:(NSString *)orderNo payType:(SPPayType)type;

/*
 订单确认
 */
- (RACSignal *)checkOrder:(NSString *)orderNo payType:(SPPayType)type;

@end

NS_ASSUME_NONNULL_END
